import { defineComponent, useSlots } from 'vue'

export default defineComponent({
  setup() {
    // 获取插槽数据
    const slots = useSlots()

    // 渲染组件
    return () => {
        let headerNav = slots.renderHeader ? slots.renderHeader() : ''
        return (
            <div>
              <h6>ttt</h6>
              <p>{headerNav}</p>
            </div>
          )
    }
  },
})